package com.chenfan.filestore.vo;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import lombok.Data;

import java.util.Date;

/**
 * @author K
 * @date 2023/4/27 10:00 AM
 */
@Data
public class BatchExportTemplateVO {
    @JsonSerialize(using = ToStringSerializer.class)
    private Long templateId;
    /**
     * 模板Code
     */
    private String templateCode;
    /**
     * 模板名称
     */
    private String templateName;
    /**
     * 所属系统id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long systemId;
    /**
     * 所属系统名称
     */
    private String systemName;
    /**
     * 所属模块id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long moduleId;
    /**
     * 模块名称
     */
    private String moduleName;
    /**
     * 模板url
     */
    private String templateUrl;

    /**
     * 模板url名称
     */
    private String templateUrlName;
    /**
     * 数据库id
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long databaseId;
    /**
     * 数据名称
     */
    private String databaseName;
    /**
     * sql 语句
     */
    private String sqlSource;

    /**
     * 批量大小
     */
    private Integer batchSize;

    private Integer status;

    private Integer isDelete;

    private Long tenantId;

    private Long companyId;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long createBy;

    private String createName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date createDate;

    @JsonSerialize(using = ToStringSerializer.class)
    private Long updateBy;

    private String updateName;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm", timezone = "GMT+8")
    private Date updateDate;

    private String remark;
}
